import { _decorator, Component, Node, Vec3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ChineMachine')
export class ChineMachine extends Component {
    @property(Node) player :Node = null;
    pos:Vec3=new Vec3();

    start() {

    }

    update(deltaTime: number) {
        this.pos = this.player.getPosition();
        this.pos.y = 0;
        this.node.setPosition(this.pos);
    }
}


